package com.wangxiang.shop.member.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * 
 * @author wangxiang
 * @email 2293672863@qq.com
 * @date 2022-04-05 22:22:19
 */
@Data
@TableName("shop_cart")
public class ShopCartEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private int cartId;
	/**
	 * 
	 */
	private int userId;
	/**
	 * sku_id
	 */
	private int skuId;
	/**
	 * 
	 */
	private int spuId;
	/**
	 * 
	 */
	private Date time;

	private int num;
	private String openId;
	private int status; //购物车状态 0有效 ， 1已经购买 ， 2商品下架失效
	private double price;
	@TableField(exist = false)
	private int receiptId;
	@TableField(exist = false)
	private String userName;


}
